package com.work.mapper.main;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.work.dto.transport.TransportSearchDTO;
import com.work.entity.main.TShipForecast;
import com.work.vo.main.TShipForecastVO;
import com.work.vo.transport.TShipForecastShipStatVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 理货船舶预报Mapper
 *
 * @author ：dujianyu
 * @since ：Created in 2024/3/12 14:23
 */
public interface TShipForecastMapper extends BaseMapper<TShipForecast> {

    /**
     * 详情
     * @param transportShipId 船ID
     * @return TShipForecastVO
     * @author dujianyu
     * @since 2024/6/17 13:45
     */
    TShipForecastVO selectDetail(Long transportShipId);

    /**
     * 船理货列表
     * @param dto 搜索条件
     * @param page 分页
     * @return List<TShipForecastShipStatVO>
     * @author dujianyu
     * @since 2024/6/25 14:45
     */
    List<TShipForecastShipStatVO> selectTransportShipListForShipStatList(@Param("dto") TransportSearchDTO dto, IPage page);

}
